__author__ = 'Administrator'
#coding = gb18030
import time

#1.time.sleep
def sleepFun(time_number):
    if int(time_number):
        print "start"
        time.sleep(time_number)
        print "end"


#2.time.time()
def timeFun():
    print time.time()

#3.time.localtime()

def localTimeFun():
    time_items = time.localtime()
    print time_items
    for i in range(len(time_items)):
        print time_items[0:i + 1]

#4.time.strftime(format)
def strfTimeFun():
    date = time.strftime('%Y-%m-%d %H:%M:%d')
    print date

#number = raw_input()
#number = int(number)
#sleepFun(number)
#timeFun()
#localTimeFun()
strfTimeFun()
